package cn.scw.project.facility.service;

import cn.scw.project.facility.domain.FacFacilityRepairs;
import cn.scw.project.facility.domain.netework.bean.FacFacilityRepairsAddReq;
import cn.scw.project.facility.domain.netework.bean.FacFacilityRepairsListReq;
import cn.scw.project.facility.domain.netework.bean.FacFacilityRepairsUpdReq;
import cn.scw.project.system.domain.SysDictData;

import java.util.List;

/**
 * 设备报修Service接口
 *
 * @author api
 * @date 2020-05-20
 */
public interface IFacFacilityRepairsService
{
    /**
     * 查询设备报修
     *
     * @param id 设备报修ID
     * @return 设备报修
     */
    public FacFacilityRepairs selectFacFacilityRepairsById(Long id);

    /**
     * 查询设备报修列表
     *
     * @param req 设备报修
     * @return 设备报修集合
     */
    public List<FacFacilityRepairs> selectFacFacilityRepairsList(FacFacilityRepairsListReq req);

    List<FacFacilityRepairs> selectFacFacilityRepairsListByUserId(Boolean isSolve);


    /**
     * 新增设备报修
     *
     * @param req 设备报修
     * @return 结果
     */
    public int insertFacFacilityRepairs(FacFacilityRepairsAddReq req);

    /**
     * 修改设备报修
     *
     * @param req 设备报修
     * @return 结果
     */
    public int updateFacFacilityRepairs(FacFacilityRepairsUpdReq req);

    /**
     * 批量删除设备报修
     *
     * @param ids 需要删除的设备报修ID
     * @return 结果
     */
    public int deleteFacFacilityRepairsByIds(Long[] ids);

    /**
     * 删除设备报修信息
     *
     * @param id 设备报修ID
     * @return 结果
     */
    public int deleteFacFacilityRepairsById(Long id);

    List<SysDictData> selectFacFacilityRepairsTypeList();

}
